<template>
  <div class="dashboard-container">
    <div class="app-container">
      <el-card>
        <el-tabs activeName="first">
          <el-tab-pane label="登录账户设置" name="first" align="center">
            <user_login />
          </el-tab-pane>
          <el-tab-pane label="个人详情">
            <user_info />
          </el-tab-pane>
          <el-tab-pane label="岗位信息">
            <job_info />
          </el-tab-pane>
        </el-tabs>
      </el-card>
    </div>
  </div>
</template>

<script>
import user_login from "@/views/employee/components/user_login";
import user_info from "@/views/employee/components/user_info";
import job_info from "@/views/employee/components/job_info";
export default {
  components: {
    user_login,
    user_info,
    job_info
  },
  beforeRouteEnter(to, from, next) {
    if (!to.params.id) {
      next({ name: "employee" });
    } else {
      next();
    }
  }
};
</script>

<style>
</style>